package main

import "fmt"

type Person struct{
	name string
	sex byte
	age int
}

type Student struct {
	Person //只有类型没有属性，继承Person所有属性
	id int
	score float32
}

func main(){
	var s1 = Student{Person{"jack",'m',17},1,98.54}
	fmt.Printf("student1:%+v",s1)
}

